package com.weblog.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import redis.clients.jedis.JedisPool;

@Configuration
public class ModelConfig {

	/**
	 * 配置JedisPool
	 * @return
	 */
	@Bean(value = "jedisPool")
	public JedisPool jedis() {
		JedisPool jedisPool = new JedisPool();
		return jedisPool;
	}

	
}
